package com.htx.oldbookpavilion.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ShoppingListExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ShoppingListExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andShoppingListIdIsNull() {
            addCriterion("SHOPPING_LIST_ID is null");
            return (Criteria) this;
        }

        public Criteria andShoppingListIdIsNotNull() {
            addCriterion("SHOPPING_LIST_ID is not null");
            return (Criteria) this;
        }

        public Criteria andShoppingListIdEqualTo(Long value) {
            addCriterion("SHOPPING_LIST_ID =", value, "shoppingListId");
            return (Criteria) this;
        }

        public Criteria andShoppingListIdNotEqualTo(Long value) {
            addCriterion("SHOPPING_LIST_ID <>", value, "shoppingListId");
            return (Criteria) this;
        }

        public Criteria andShoppingListIdGreaterThan(Long value) {
            addCriterion("SHOPPING_LIST_ID >", value, "shoppingListId");
            return (Criteria) this;
        }

        public Criteria andShoppingListIdGreaterThanOrEqualTo(Long value) {
            addCriterion("SHOPPING_LIST_ID >=", value, "shoppingListId");
            return (Criteria) this;
        }

        public Criteria andShoppingListIdLessThan(Long value) {
            addCriterion("SHOPPING_LIST_ID <", value, "shoppingListId");
            return (Criteria) this;
        }

        public Criteria andShoppingListIdLessThanOrEqualTo(Long value) {
            addCriterion("SHOPPING_LIST_ID <=", value, "shoppingListId");
            return (Criteria) this;
        }

        public Criteria andShoppingListIdIn(List<Long> values) {
            addCriterion("SHOPPING_LIST_ID in", values, "shoppingListId");
            return (Criteria) this;
        }

        public Criteria andShoppingListIdNotIn(List<Long> values) {
            addCriterion("SHOPPING_LIST_ID not in", values, "shoppingListId");
            return (Criteria) this;
        }

        public Criteria andShoppingListIdBetween(Long value1, Long value2) {
            addCriterion("SHOPPING_LIST_ID between", value1, value2, "shoppingListId");
            return (Criteria) this;
        }

        public Criteria andShoppingListIdNotBetween(Long value1, Long value2) {
            addCriterion("SHOPPING_LIST_ID not between", value1, value2, "shoppingListId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdIsNull() {
            addCriterion("USER_INFO_ID is null");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdIsNotNull() {
            addCriterion("USER_INFO_ID is not null");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdEqualTo(Long value) {
            addCriterion("USER_INFO_ID =", value, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdNotEqualTo(Long value) {
            addCriterion("USER_INFO_ID <>", value, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdGreaterThan(Long value) {
            addCriterion("USER_INFO_ID >", value, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdGreaterThanOrEqualTo(Long value) {
            addCriterion("USER_INFO_ID >=", value, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdLessThan(Long value) {
            addCriterion("USER_INFO_ID <", value, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdLessThanOrEqualTo(Long value) {
            addCriterion("USER_INFO_ID <=", value, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdIn(List<Long> values) {
            addCriterion("USER_INFO_ID in", values, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdNotIn(List<Long> values) {
            addCriterion("USER_INFO_ID not in", values, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdBetween(Long value1, Long value2) {
            addCriterion("USER_INFO_ID between", value1, value2, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdNotBetween(Long value1, Long value2) {
            addCriterion("USER_INFO_ID not between", value1, value2, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andBookIdIsNull() {
            addCriterion("BOOK_ID is null");
            return (Criteria) this;
        }

        public Criteria andBookIdIsNotNull() {
            addCriterion("BOOK_ID is not null");
            return (Criteria) this;
        }

        public Criteria andBookIdEqualTo(Long value) {
            addCriterion("BOOK_ID =", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdNotEqualTo(Long value) {
            addCriterion("BOOK_ID <>", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdGreaterThan(Long value) {
            addCriterion("BOOK_ID >", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdGreaterThanOrEqualTo(Long value) {
            addCriterion("BOOK_ID >=", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdLessThan(Long value) {
            addCriterion("BOOK_ID <", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdLessThanOrEqualTo(Long value) {
            addCriterion("BOOK_ID <=", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdIn(List<Long> values) {
            addCriterion("BOOK_ID in", values, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdNotIn(List<Long> values) {
            addCriterion("BOOK_ID not in", values, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdBetween(Long value1, Long value2) {
            addCriterion("BOOK_ID between", value1, value2, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdNotBetween(Long value1, Long value2) {
            addCriterion("BOOK_ID not between", value1, value2, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookNameIsNull() {
            addCriterion("BOOK_NAME is null");
            return (Criteria) this;
        }

        public Criteria andBookNameIsNotNull() {
            addCriterion("BOOK_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andBookNameEqualTo(String value) {
            addCriterion("BOOK_NAME =", value, "bookName");
            return (Criteria) this;
        }

        public Criteria andBookNameNotEqualTo(String value) {
            addCriterion("BOOK_NAME <>", value, "bookName");
            return (Criteria) this;
        }

        public Criteria andBookNameGreaterThan(String value) {
            addCriterion("BOOK_NAME >", value, "bookName");
            return (Criteria) this;
        }

        public Criteria andBookNameGreaterThanOrEqualTo(String value) {
            addCriterion("BOOK_NAME >=", value, "bookName");
            return (Criteria) this;
        }

        public Criteria andBookNameLessThan(String value) {
            addCriterion("BOOK_NAME <", value, "bookName");
            return (Criteria) this;
        }

        public Criteria andBookNameLessThanOrEqualTo(String value) {
            addCriterion("BOOK_NAME <=", value, "bookName");
            return (Criteria) this;
        }

        public Criteria andBookNameLike(String value) {
            addCriterion("BOOK_NAME like", value, "bookName");
            return (Criteria) this;
        }

        public Criteria andBookNameNotLike(String value) {
            addCriterion("BOOK_NAME not like", value, "bookName");
            return (Criteria) this;
        }

        public Criteria andBookNameIn(List<String> values) {
            addCriterion("BOOK_NAME in", values, "bookName");
            return (Criteria) this;
        }

        public Criteria andBookNameNotIn(List<String> values) {
            addCriterion("BOOK_NAME not in", values, "bookName");
            return (Criteria) this;
        }

        public Criteria andBookNameBetween(String value1, String value2) {
            addCriterion("BOOK_NAME between", value1, value2, "bookName");
            return (Criteria) this;
        }

        public Criteria andBookNameNotBetween(String value1, String value2) {
            addCriterion("BOOK_NAME not between", value1, value2, "bookName");
            return (Criteria) this;
        }

        public Criteria andBookUserIdIsNull() {
            addCriterion("BOOK_USER_ID is null");
            return (Criteria) this;
        }

        public Criteria andBookUserIdIsNotNull() {
            addCriterion("BOOK_USER_ID is not null");
            return (Criteria) this;
        }

        public Criteria andBookUserIdEqualTo(Long value) {
            addCriterion("BOOK_USER_ID =", value, "bookUserId");
            return (Criteria) this;
        }

        public Criteria andBookUserIdNotEqualTo(Long value) {
            addCriterion("BOOK_USER_ID <>", value, "bookUserId");
            return (Criteria) this;
        }

        public Criteria andBookUserIdGreaterThan(Long value) {
            addCriterion("BOOK_USER_ID >", value, "bookUserId");
            return (Criteria) this;
        }

        public Criteria andBookUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("BOOK_USER_ID >=", value, "bookUserId");
            return (Criteria) this;
        }

        public Criteria andBookUserIdLessThan(Long value) {
            addCriterion("BOOK_USER_ID <", value, "bookUserId");
            return (Criteria) this;
        }

        public Criteria andBookUserIdLessThanOrEqualTo(Long value) {
            addCriterion("BOOK_USER_ID <=", value, "bookUserId");
            return (Criteria) this;
        }

        public Criteria andBookUserIdIn(List<Long> values) {
            addCriterion("BOOK_USER_ID in", values, "bookUserId");
            return (Criteria) this;
        }

        public Criteria andBookUserIdNotIn(List<Long> values) {
            addCriterion("BOOK_USER_ID not in", values, "bookUserId");
            return (Criteria) this;
        }

        public Criteria andBookUserIdBetween(Long value1, Long value2) {
            addCriterion("BOOK_USER_ID between", value1, value2, "bookUserId");
            return (Criteria) this;
        }

        public Criteria andBookUserIdNotBetween(Long value1, Long value2) {
            addCriterion("BOOK_USER_ID not between", value1, value2, "bookUserId");
            return (Criteria) this;
        }

        public Criteria andBookUserNameIsNull() {
            addCriterion("BOOK_USER_NAME is null");
            return (Criteria) this;
        }

        public Criteria andBookUserNameIsNotNull() {
            addCriterion("BOOK_USER_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andBookUserNameEqualTo(String value) {
            addCriterion("BOOK_USER_NAME =", value, "bookUserName");
            return (Criteria) this;
        }

        public Criteria andBookUserNameNotEqualTo(String value) {
            addCriterion("BOOK_USER_NAME <>", value, "bookUserName");
            return (Criteria) this;
        }

        public Criteria andBookUserNameGreaterThan(String value) {
            addCriterion("BOOK_USER_NAME >", value, "bookUserName");
            return (Criteria) this;
        }

        public Criteria andBookUserNameGreaterThanOrEqualTo(String value) {
            addCriterion("BOOK_USER_NAME >=", value, "bookUserName");
            return (Criteria) this;
        }

        public Criteria andBookUserNameLessThan(String value) {
            addCriterion("BOOK_USER_NAME <", value, "bookUserName");
            return (Criteria) this;
        }

        public Criteria andBookUserNameLessThanOrEqualTo(String value) {
            addCriterion("BOOK_USER_NAME <=", value, "bookUserName");
            return (Criteria) this;
        }

        public Criteria andBookUserNameLike(String value) {
            addCriterion("BOOK_USER_NAME like", value, "bookUserName");
            return (Criteria) this;
        }

        public Criteria andBookUserNameNotLike(String value) {
            addCriterion("BOOK_USER_NAME not like", value, "bookUserName");
            return (Criteria) this;
        }

        public Criteria andBookUserNameIn(List<String> values) {
            addCriterion("BOOK_USER_NAME in", values, "bookUserName");
            return (Criteria) this;
        }

        public Criteria andBookUserNameNotIn(List<String> values) {
            addCriterion("BOOK_USER_NAME not in", values, "bookUserName");
            return (Criteria) this;
        }

        public Criteria andBookUserNameBetween(String value1, String value2) {
            addCriterion("BOOK_USER_NAME between", value1, value2, "bookUserName");
            return (Criteria) this;
        }

        public Criteria andBookUserNameNotBetween(String value1, String value2) {
            addCriterion("BOOK_USER_NAME not between", value1, value2, "bookUserName");
            return (Criteria) this;
        }

        public Criteria andBookUserEmailIsNull() {
            addCriterion("BOOK_USER_EMAIL is null");
            return (Criteria) this;
        }

        public Criteria andBookUserEmailIsNotNull() {
            addCriterion("BOOK_USER_EMAIL is not null");
            return (Criteria) this;
        }

        public Criteria andBookUserEmailEqualTo(String value) {
            addCriterion("BOOK_USER_EMAIL =", value, "bookUserEmail");
            return (Criteria) this;
        }

        public Criteria andBookUserEmailNotEqualTo(String value) {
            addCriterion("BOOK_USER_EMAIL <>", value, "bookUserEmail");
            return (Criteria) this;
        }

        public Criteria andBookUserEmailGreaterThan(String value) {
            addCriterion("BOOK_USER_EMAIL >", value, "bookUserEmail");
            return (Criteria) this;
        }

        public Criteria andBookUserEmailGreaterThanOrEqualTo(String value) {
            addCriterion("BOOK_USER_EMAIL >=", value, "bookUserEmail");
            return (Criteria) this;
        }

        public Criteria andBookUserEmailLessThan(String value) {
            addCriterion("BOOK_USER_EMAIL <", value, "bookUserEmail");
            return (Criteria) this;
        }

        public Criteria andBookUserEmailLessThanOrEqualTo(String value) {
            addCriterion("BOOK_USER_EMAIL <=", value, "bookUserEmail");
            return (Criteria) this;
        }

        public Criteria andBookUserEmailLike(String value) {
            addCriterion("BOOK_USER_EMAIL like", value, "bookUserEmail");
            return (Criteria) this;
        }

        public Criteria andBookUserEmailNotLike(String value) {
            addCriterion("BOOK_USER_EMAIL not like", value, "bookUserEmail");
            return (Criteria) this;
        }

        public Criteria andBookUserEmailIn(List<String> values) {
            addCriterion("BOOK_USER_EMAIL in", values, "bookUserEmail");
            return (Criteria) this;
        }

        public Criteria andBookUserEmailNotIn(List<String> values) {
            addCriterion("BOOK_USER_EMAIL not in", values, "bookUserEmail");
            return (Criteria) this;
        }

        public Criteria andBookUserEmailBetween(String value1, String value2) {
            addCriterion("BOOK_USER_EMAIL between", value1, value2, "bookUserEmail");
            return (Criteria) this;
        }

        public Criteria andBookUserEmailNotBetween(String value1, String value2) {
            addCriterion("BOOK_USER_EMAIL not between", value1, value2, "bookUserEmail");
            return (Criteria) this;
        }

        public Criteria andCountIsNull() {
            addCriterion("COUNT is null");
            return (Criteria) this;
        }

        public Criteria andCountIsNotNull() {
            addCriterion("COUNT is not null");
            return (Criteria) this;
        }

        public Criteria andCountEqualTo(Integer value) {
            addCriterion("COUNT =", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountNotEqualTo(Integer value) {
            addCriterion("COUNT <>", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountGreaterThan(Integer value) {
            addCriterion("COUNT >", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("COUNT >=", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountLessThan(Integer value) {
            addCriterion("COUNT <", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountLessThanOrEqualTo(Integer value) {
            addCriterion("COUNT <=", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountIn(List<Integer> values) {
            addCriterion("COUNT in", values, "count");
            return (Criteria) this;
        }

        public Criteria andCountNotIn(List<Integer> values) {
            addCriterion("COUNT not in", values, "count");
            return (Criteria) this;
        }

        public Criteria andCountBetween(Integer value1, Integer value2) {
            addCriterion("COUNT between", value1, value2, "count");
            return (Criteria) this;
        }

        public Criteria andCountNotBetween(Integer value1, Integer value2) {
            addCriterion("COUNT not between", value1, value2, "count");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("CREATE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("CREATE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("CREATE_TIME =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("CREATE_TIME <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("CREATE_TIME >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CREATE_TIME >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("CREATE_TIME <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("CREATE_TIME <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("CREATE_TIME in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("CREATE_TIME not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("CREATE_TIME between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("CREATE_TIME not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andLastModifiedTimeIsNull() {
            addCriterion("LAST_MODIFIED_TIME is null");
            return (Criteria) this;
        }

        public Criteria andLastModifiedTimeIsNotNull() {
            addCriterion("LAST_MODIFIED_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andLastModifiedTimeEqualTo(Date value) {
            addCriterion("LAST_MODIFIED_TIME =", value, "lastModifiedTime");
            return (Criteria) this;
        }

        public Criteria andLastModifiedTimeNotEqualTo(Date value) {
            addCriterion("LAST_MODIFIED_TIME <>", value, "lastModifiedTime");
            return (Criteria) this;
        }

        public Criteria andLastModifiedTimeGreaterThan(Date value) {
            addCriterion("LAST_MODIFIED_TIME >", value, "lastModifiedTime");
            return (Criteria) this;
        }

        public Criteria andLastModifiedTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("LAST_MODIFIED_TIME >=", value, "lastModifiedTime");
            return (Criteria) this;
        }

        public Criteria andLastModifiedTimeLessThan(Date value) {
            addCriterion("LAST_MODIFIED_TIME <", value, "lastModifiedTime");
            return (Criteria) this;
        }

        public Criteria andLastModifiedTimeLessThanOrEqualTo(Date value) {
            addCriterion("LAST_MODIFIED_TIME <=", value, "lastModifiedTime");
            return (Criteria) this;
        }

        public Criteria andLastModifiedTimeIn(List<Date> values) {
            addCriterion("LAST_MODIFIED_TIME in", values, "lastModifiedTime");
            return (Criteria) this;
        }

        public Criteria andLastModifiedTimeNotIn(List<Date> values) {
            addCriterion("LAST_MODIFIED_TIME not in", values, "lastModifiedTime");
            return (Criteria) this;
        }

        public Criteria andLastModifiedTimeBetween(Date value1, Date value2) {
            addCriterion("LAST_MODIFIED_TIME between", value1, value2, "lastModifiedTime");
            return (Criteria) this;
        }

        public Criteria andLastModifiedTimeNotBetween(Date value1, Date value2) {
            addCriterion("LAST_MODIFIED_TIME not between", value1, value2, "lastModifiedTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}